package org.xxx.system.controller;

import lombok.AllArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.xxx.mybatis.base.DemoService;
import org.xxx.system.entity.AccountEntity;
import org.xxx.system.service.IUserManagerService;

import java.time.LocalDateTime;

@RestController
@RequestMapping("user")
@AllArgsConstructor
public class UserController {

    private final IUserManagerService userManagerService;
    private final DemoService demoService;

    /**
     * 查询单条
     */
    @GetMapping("info/{id}")
    public ResponseEntity<AccountEntity> info(@PathVariable String id) {

	AccountEntity entity = new AccountEntity();
	entity.setId(98765355908L);
	entity.setAccount("489476365");
	entity.setPassword("123456");
	entity.setDefaultName("会员-009");
	entity.setStatus(0);
	entity.setCreateTime(LocalDateTime.now());
	entity.setUpdateTime(LocalDateTime.now());
	entity.setDeletedFlag(0);

	return ResponseEntity.ok(entity);

    }


}
